import './App.less';
import { DatePicker } from 'antd';
import React from 'react';
import { commonBarInfo } from '../utils/api'

export default class App extends React.Component{
  
  async componentDidMount(){
    console.log("组件加载完成");
    let responseData = await commonBarInfo()
    console.log(responseData)
  }

  // async commonBarInfo = ()=>{
  //   try {
  //     let responseData = await commonBarInfo()
  //     console.log(responseData);
  //   } catch (error) {
  //     console.log("request error");
  //   }
  // }

  render(){
    return(
      <div className="App">
        <p>占位测试</p>
        <DatePicker />
      </div>
    )
  }
}

